cmake_minimum_required(VERSION 3.9)
project(myDemo1)

set(CMAKE_CXX_STANDARD 11)

aux_source_directory(. DIR_ROOT_SRCS)

include_directories(./ ./Hello ./World)

add_subdirectory(Hello)
add_subdirectory(World)

add_executable(myDemo1 ${DIR_ROOT_SRCS})
target_link_libraries(myDemo1 Hello World)
